public class PricingMacroModel extends Object implements ContextualNode, XMLMarshallable, ICatalogObject, ITagNameProvider
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="pricingMacro">
<xs:complexType>
<xs:sequence>
<xs:element ref="inProperty" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="outProperty" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="component" minOccurs="0" maxOccurs="1"/>
<xs:element ref="rootChronology" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="owner" type="xs:string" use="required"/>
<xs:attribute name="currency" type="xs:string" use="optional"/> <!-- deprecated -->
<xs:attribute name="code" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="rootChronology">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
PricingMacroModel()
Builds an empty PricingMacroModel.
|
PricingMacroModel(String code,
String description,
String currencyCode)
Deprecated.
Deprecated since version 3.0 of SAP CC
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
boolean |
checkValidity()
Returns true if the pricing macro is valid.
|
String |
getCode()
Gets the code.
|
RatingContextDescription |
getContext(ContextualNode child)
Updates the context for the specified child and returns it.
|
String |
getCurrencyCode()
Deprecated.
Deprecated since version 3.0 of SAP CC
|
String |
getDescription()
Gets the description
|
Vector<InMacroPropertyModel> |
getInProperties()
Gets the in properties.
|
InMacroPropertyModel |
getInProperty(String name)
Gets the in property with the specified name.
|
Vector<OutMacroPropertyModel> |
getOutProperties()
Gets the out properties.
|
String |
getOwner()
Gets the owner
|
String |
getReference()
Gets the reference.
|
RateComponentModel |
getRoot()
Gets the root.
|
ChronologyModel |
getRootChronology()
Gets the root chronology.
|
String |
getTagName()
Gets the XML tag name of the HCI model.
|
RatingContextDescription |
inheritedContext()
Gets the inherited context.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setCode(String c)
Sets the code.
|
void |
setContext(RatingContextDescription contextDescription)
Sets the context.
|
void |
setCurrencyCode(String currencyCode)
Deprecated.
Deprecated since version 3.0 of SAP CC
|
void |
setDescription(String d)
Sets the description
|
void |
setInProperties(Vector<InMacroPropertyModel> inProperties)
Sets the in properties.
|
void |
setOutProperties(Vector<OutMacroPropertyModel> outProperties)
Sets the out properties.
|
void |
setOwner(String p)
Sets the owner
|
void |
setParent(ContextualNode node)
Sets the parent.
|
void |
setReference(String r)
Sets the reference.
|
void |
setRoot(RateComponentModel r)
Sets the root.
|
public PricingMacroModel()
@Deprecated public PricingMacroModel(String code, String description, String currencyCode)
code - The code of the pricing macrodescription - The description of the pricing macrocurrencyCode - The currency code of the pricing macropublic String getReference()
public void setReference(String r)
r - the reference.public String getCode()
public void setCode(String c)
c - the code.public RateComponentModel getRoot()
public void setRoot(RateComponentModel r)
r - the root.public String getDescription()
public void setDescription(String d)
d - The description@Deprecated public String getCurrencyCode()
null@Deprecated public void setCurrencyCode(String currencyCode)
currencyCode - the currency codepublic String getOwner()
getOwner in interface ICatalogObjectpublic void setOwner(String p)
p - the ownerpublic Vector<InMacroPropertyModel> getInProperties()
InMacroPropertyModel.public InMacroPropertyModel getInProperty(String name)
name - name of the in property to fetchnull if not found)public void setInProperties(Vector<InMacroPropertyModel> inProperties)
inProperties - a Vector of InMacroPropertyModel.public Vector<OutMacroPropertyModel> getOutProperties()
OutMacroPropertyModel.public void setOutProperties(Vector<OutMacroPropertyModel> outProperties)
outProperties - a Vector of {link OutMacroPropertyModel OutMacroPropertyModel}.public ChronologyModel getRootChronology()
public void setParent(ContextualNode node)
setParent in interface ContextualNodenode - the parent.public void setContext(RatingContextDescription contextDescription)
contextDescription - the context.public RatingContextDescription getContext(ContextualNode child)
getContext in interface ContextualNodechild - The child nodepublic RatingContextDescription inheritedContext()
inheritedContext in interface ContextualNodepublic boolean checkValidity()
public String getTagName()
ITagNameProvidergetTagName in interface ITagNameProviderpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into